<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: SimTracer Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00202.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">SimTracer Class Reference<div class="ingroups"><a class="el" href="a00514.html">utils  -  utility classes</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="SimTracer" -->
<p><code>#include &lt;<a class="el" href="a00501_source.html">SimTracer.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for SimTracer:</div>
<div class="dyncontent">
<div class="center"><img src="a01022.png" border="0" usemap="#SimTracer_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a01023.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6ecce89c39b049ae7ae53f8edcb26561"></a><!-- doxytag: member="SimTracer::initialize" ref="a6ecce89c39b049ae7ae53f8edcb26561" args="(int)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00202.html#a6ecce89c39b049ae7ae53f8edcb26561">initialize</a> (int)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialization of the module and some variables. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a45ff5c21bab35375fd0cc64d0f9dab69"></a><!-- doxytag: member="SimTracer::finish" ref="a45ff5c21bab35375fd0cc64d0f9dab69" args="()" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00202.html#a45ff5c21bab35375fd0cc64d0f9dab69">finish</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete all dynamically allocated objects of the module. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a01acc81a79813c446e005c2c565c3b0d"></a><!-- doxytag: member="SimTracer::namLog" ref="a01acc81a79813c446e005c2c565c3b0d" args="(std::string namString)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00202.html#a01acc81a79813c446e005c2c565c3b0d">namLog</a> (std::string namString)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Called by any module wanting to log a nam event. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19ccd8a04cb71d3b1d5bd5903ab15641"></a><!-- doxytag: member="SimTracer::radioEnergyLog" ref="a19ccd8a04cb71d3b1d5bd5903ab15641" args="(unsigned long mac, int state, simtime_t_cref duration, double power, double newPower)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>radioEnergyLog</b> (unsigned long mac, int state, simtime_t_cref duration, double power, double newPower)</td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="a6a0bdca61d51566cea8885d6b8ca17ec"></a><!-- doxytag: member="SimTracer::logLink" ref="a6a0bdca61d51566cea8885d6b8ca17ec" args="(T parent, T child)" -->
template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00202.html#a6a0bdca61d51566cea8885d6b8ca17ec">logLink</a> (T parent, T child)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Called by a routing protocol to log a link in a tree topology. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab922fd19ca5a84b2037673a3d8924a2e"></a><!-- doxytag: member="SimTracer::logPosition" ref="ab922fd19ca5a84b2037673a3d8924a2e" args="(int node, double x, double y, double z=0.0)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00202.html#ab922fd19ca5a84b2037673a3d8924a2e">logPosition</a> (int node, double x, double y, double z=0.0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Called by the MAC or NET layer to log the node position. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2c06e266a68afe56a1d107a256ff984a"></a><!-- doxytag: member="SimTracer::receiveSignal" ref="a2c06e266a68afe56a1d107a256ff984a" args="(cComponent *source, simsignal_t signalID, cObject *obj)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00202.html#a2c06e266a68afe56a1d107a256ff984a">receiveSignal</a> (cComponent *source, simsignal_t signalID, cObject *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Called by the signaling mechanism whenever a change occurs we're interested in. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af84804d95ce644a84efee51b5ff30115"></a><!-- doxytag: member="SimTracer::getAvgSensorPowerConsumption" ref="af84804d95ce644a84efee51b5ff30115" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>getAvgSensorPowerConsumption</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad437f52e8868641b2d44ae167f7fc133"></a><!-- doxytag: member="SimTracer::getSinkPowerConsumption" ref="ad437f52e8868641b2d44ae167f7fc133" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>getSinkPowerConsumption</b> () const </td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a13b010be92cbb90497ee7780e978e3b0"></a><!-- doxytag: member="SimTracer::namFile" ref="a13b010be92cbb90497ee7780e978e3b0" args="" -->
std::ofstream&#160;</td><td class="memItemRight" valign="bottom"><b>namFile</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6d823af310c6909c86d4cced61104285"></a><!-- doxytag: member="SimTracer::radioEnergyFile" ref="a6d823af310c6909c86d4cced61104285" args="" -->
std::ofstream&#160;</td><td class="memItemRight" valign="bottom"><b>radioEnergyFile</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf4e8b6061c41971703184a7fc23ee9a"></a><!-- doxytag: member="SimTracer::treeFile" ref="acf4e8b6061c41971703184a7fc23ee9a" args="" -->
std::ofstream&#160;</td><td class="memItemRight" valign="bottom"><b>treeFile</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae371b04be6160ff32cfdfc02691cb055"></a><!-- doxytag: member="SimTracer::packetsColors" ref="ae371b04be6160ff32cfdfc02691cb055" args="" -->
std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>packetsColors</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac18d4bc215fbe502b582ed1993926432"></a><!-- doxytag: member="SimTracer::goodputVec" ref="ac18d4bc215fbe502b582ed1993926432" args="" -->
cOutVector&#160;</td><td class="memItemRight" valign="bottom"><b>goodputVec</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac2fd1d0d7ed6237950592875610b0ca3"></a><!-- doxytag: member="SimTracer::pSinkVec" ref="ac2fd1d0d7ed6237950592875610b0ca3" args="" -->
cOutVector&#160;</td><td class="memItemRight" valign="bottom"><b>pSinkVec</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad1e418ff37d878d2d9460023b10798af"></a><!-- doxytag: member="SimTracer::pSensorVec" ref="ad1e418ff37d878d2d9460023b10798af" args="" -->
cOutVector&#160;</td><td class="memItemRight" valign="bottom"><b>pSensorVec</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8cfb3bbe3f40d060a709edbff44e1ec8"></a><!-- doxytag: member="SimTracer::powerConsumptions" ref="a8cfb3bbe3f40d060a709edbff44e1ec8" args="" -->
std::map&lt; unsigned long, double &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>powerConsumptions</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab5a2aeeb4748ff2af3facfdda5d09ef1"></a><!-- doxytag: member="SimTracer::packet" ref="ab5a2aeeb4748ff2af3facfdda5d09ef1" args="" -->
<a class="el" href="a00168.html">Packet</a>&#160;</td><td class="memItemRight" valign="bottom"><b>packet</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3d6fa6e94cb248f95c4d6b6483e646ef"></a><!-- doxytag: member="SimTracer::nbApplPacketsSent" ref="a3d6fa6e94cb248f95c4d6b6483e646ef" args="" -->
long&#160;</td><td class="memItemRight" valign="bottom"><b>nbApplPacketsSent</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a803aac7cae367109c27b845e993194e3"></a><!-- doxytag: member="SimTracer::nbApplPacketsReceived" ref="a803aac7cae367109c27b845e993194e3" args="" -->
long&#160;</td><td class="memItemRight" valign="bottom"><b>nbApplPacketsReceived</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afca05bfcb5a81ccceab2b42dd5e6f8c7"></a><!-- doxytag: member="SimTracer::catEnergy" ref="afca05bfcb5a81ccceab2b42dd5e6f8c7" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>catEnergy</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0000d44755d6895b72397ad75666690"></a><!-- doxytag: member="SimTracer::powerConsumptions2" ref="af0000d44755d6895b72397ad75666690" args="" -->
std::map&lt; unsigned long, double &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>powerConsumptions2</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51dd3f0e69dc2243ea2d395f9f801d2e"></a><!-- doxytag: member="SimTracer::currPower" ref="a51dd3f0e69dc2243ea2d395f9f801d2e" args="" -->
std::map&lt; unsigned long, double &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>currPower</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e10a424021471b931c68888ebe2151a"></a><!-- doxytag: member="SimTracer::lastUpdates" ref="a7e10a424021471b931c68888ebe2151a" args="" -->
std::map&lt; unsigned long, <br class="typebreak"/>
simtime_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>lastUpdates</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0abb6a374c635fa194834252a6b368ce"></a><!-- doxytag: member="SimTracer::world" ref="a0abb6a374c635fa194834252a6b368ce" args="" -->
<a class="el" href="a00030.html">BaseWorldUtility</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>world</b></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe43b8d4ba8ac993aa02da3e2be786b8"></a><!-- doxytag: member="SimTracer::SimTracer" ref="abe43b8d4ba8ac993aa02da3e2be786b8" args="(const SimTracer &amp;)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00202.html#abe43b8d4ba8ac993aa02da3e2be786b8">SimTracer</a> (const <a class="el" href="a00202.html">SimTracer</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor is not allowed. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afaae08c0ff1e41252f5c90ac3101bf6a"></a><!-- doxytag: member="SimTracer::operator=" ref="afaae08c0ff1e41252f5c90ac3101bf6a" args="(const SimTracer &amp;)" -->
<a class="el" href="a00202.html">SimTracer</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00202.html#afaae08c0ff1e41252f5c90ac3101bf6a">operator=</a> (const <a class="el" href="a00202.html">SimTracer</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator is not allowed. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><dl class="author"><dt><b>Author:</b></dt><dd>Jerome Rousselot </dd></dl>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Projects/MiXiM/extsrc/mixim/src/modules/utility/<a class="el" href="a00501_source.html">SimTracer.h</a></li>
<li>D:/Projects/MiXiM/extsrc/mixim/src/modules/utility/SimTracer.cc</li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00202.html">SimTracer</a>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:33 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
